import request from "@/utils/request.js"


// 获取账号数据
export function loginApi(data) { 
    return request({
        url: '/auth/login',
        method: 'POST',
        params: data
    })
}


// 退出登录
export function logoutApi(data) { 
    return request({
        url: '/auth/logout ',
        method: 'delete',
        params: data
    })
}

//   获取用户信息
export function getUserInfoApi(data) { 
    return request({
        url: '/system/user/getInfo',
        method: 'get',
        params: data
    })
} 
